import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/purchase_order_farther_entity.g.dart';
import 'package:library_base/entities/purchase_order_entity.dart';
import 'dart:convert';

@JsonSerializable()
class PurchaseOrderFartherEntity {
  late List<PurchaseOrderEntity> list;

  late int total;
  late int size;
  late int current;
  late int pages;

  PurchaseOrderFartherEntity();

  factory PurchaseOrderFartherEntity.fromJson(Map<String, dynamic> json) =>
      $PurchaseOrderFartherEntityFromJson(json);

  Map<String, dynamic> toJson() => $PurchaseOrderFartherEntityToJson(this);

  @override
  String toString() => json.encode(this);
}
